home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Changing Color Lookup Tab.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Changing Color Lookup Table in ODF
  2. Sent:        5/27/96 1:18 PM
  3. Received:    5/28/96 8:41 AM
  4. From:        Dave Shaver, Dave_Shaver@astrobyte.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 10:30 PM 5/24/96, Serge Froment wrote:
  9. >This is a major problem. I want my colors to show up even when I am
  10. >embedded!
  11. >
  12. >Serge
  13.  
  14. Then you have two choices:
  15.  
  16.   1) Don't use colors which are going to map to the same index.
  17.   2) Approximate the colors with dithering or a pattern.
  18.  
  19.    If you are copying pixmaps, you're probably limited to using ditherCopy
  20. mode (which doesn't appear at first glance to be supported in ODF, probably
  21. because Windows doesn't support it), which will approximate the colors by
  22. alternating pixel values. If you are drawing these items with primitives,
  23. you just avoid using two RGB values which map to the same index in the
  24. current palette (either that, or use MakeRGBPat() to give you a pattern
  25. which does a better job of approximating the color, but looks crappy when
  26. drawing fine detail).
  27.  
  28. - DS
  29.  
  30.